package com.xueyi.system.BaseCropGrowth.service.impl;

import com.xueyi.system.BaseCropGrowth.domain.query.BaseCropGrowthQuery;
import com.xueyi.system.BaseCropGrowth.domain.dto.BaseCropGrowthDto;
import com.xueyi.system.BaseCropGrowth.service.IBaseCropGrowthService;
import com.xueyi.system.BaseCropGrowth.manager.IBaseCropGrowthManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作物长势管理 服务层处理
 *
 * @author xueyi
 */
@Service
public class BaseCropGrowthServiceImpl extends BaseServiceImpl<BaseCropGrowthQuery, BaseCropGrowthDto, IBaseCropGrowthManager> implements IBaseCropGrowthService {

    /**
     * 查询作物长势对象列表 | 数据权限 | 附加数据
     *
     * @param baseCropGrowth 作物长势对象
     * @return 作物长势对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"BaseCropGrowthMapper"})
    public List<BaseCropGrowthDto> selectListScope(BaseCropGrowthQuery baseCropGrowth) {
        return baseManager.selectListExtra(baseCropGrowth);
    }

    @Override
    public List<BaseCropGrowthDto> findDatelist() {
        return baseManager.findDatelist();
    }
}
